package com.kob.backend.controller.user;

import com.kob.backend.pojo.user;
import com.kob.backend.service.user.UserGetInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserGetInfoController {
    @Autowired
    private UserGetInfoService userGetInfoService;
    @GetMapping("/users/getinfo/")
    public List<user> getinfo(){
        return userGetInfoService.getinfo();
    }
}
